package com.kl.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kl.seckill.pojo.User;
import com.kl.seckill.vo.LoginVo;
import com.kl.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 服务类
 */
public interface IUserService extends IService<User> {

    /**
     * 功能描述: 登录
     */
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);


    /**
     * 功能描述: 根据cookie获取用户
     */
    User getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);


    /**
     * 功能描述:
     */
    RespBean updatePassword(String userTicket, String password, HttpServletRequest request,
                            HttpServletResponse response);
}
